<?php
require_once "../Common/database.php";
$password=md5($_POST[password]);
$query="INSERT INTO tblUsers (`Key`,Username,Name,Password) VALUES ('','$_POST[username]','$_POST[name]','$password')";
mysql_query($query);
$query="INSERT INTO `tbltheme` (`ID`, `user`, `Text`, `Links`, `usedLink`, `menuBackground`, `mainBackground`, `bodyfont`, `bodyfontsize`, `onHold`, `outOfHours`, `1stLine`, `2ndLine`, `Pending`) VALUES
('', '$_POST[name]', 'black', 'blue', NULL, NULL, '#6495ED', 'Arial', 14, '', '', '', '', '')";
mysql_query($query);
echo $query;
echo '<h3><center>Added User '.$_POST[name];
echo '<p><a href="../index.php?p=susers">Back</a>';
?>